//
//  HMBillDetailTableViewCell.m
//  HMSupplier
//
//  Created by haohao on 2017/7/6.
//  Copyright © 2017年 haohao. All rights reserved.
//

#import "HMBillDetailTableViewCell.h"
#import "OrderDetailView.h"
@implementation HMBillDetailTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    _orderNumberLabel.textColor = k999999;
    _dateTimeLabel.textColor = k999999;
    _lineLabel.backgroundColor = ke5e5e5;
    _lineLabel1.backgroundColor = ke5e5e5;
    
    [_detailBtn setTitleColor:k999999 forState:UIControlStateNormal];
    
    [_detailBtn addTarget:self action:@selector(addDetailView) forControlEvents:UIControlEventTouchUpInside];
    // Initialization code
}

- (void)addDetailView {
    OrderDetailView *orderview = [[OrderDetailView alloc] init];
    [orderview show];
}

- (void)setModel:(RecordTetailModel *)model {
    _model = model;
    _orderNumberLabel.text = [NSString stringWithFormat:@"订单号：%@", _model.oid]; 
    _wellGoodLabel.text = _model.item_name;
    _unitPrice.text = [NSString stringWithFormat:@"%@/%@元", _model.price, _model.item_price];
    _wellWeightLabel.text = [NSString stringWithFormat:@"%@/%@", _model.numbers, _model.weight];
    _dateTimeLabel.text = _model.addtime;
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
